package com.luych.userCenter.entity;

import java.io.Serializable;
import java.util.Date;

public class PermissionInfo implements Serializable {
    private String permissionId;

    private String permissionName;

    private Date createDate;

    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public PermissionInfo(String permissionId, String permissionName, Date createDate, Date updateDate) {
        this.permissionId = permissionId;
        this.permissionName = permissionName;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public PermissionInfo() {
        super();
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId == null ? null : permissionId.trim();
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName == null ? null : permissionName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", permissionId=").append(permissionId);
        sb.append(", permissionName=").append(permissionName);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}